<?php

namespace app\advertisement\controller;

use app\common\controller\PCBase;
// use app\common\controller\DBase;//测试专用
use app\advertisement\logic\TikAccountDataLogic;
use app\advertisement\model\TikAccountData as TikAccountDataModel;
use think\facade\Db;
use Throwable;
use app\common\library\Upload;

class TikAccountData extends PCBase
{
    /**
     * 模型
     * @var object
     * @phpstan-var TikAccountDataModel
     */
    protected object $model;

    public function initialize(): void
    {
        parent::initialize();
        $this->model = new TikAccountDataModel();
    }

    /**
     * index
     * @throws Throwable
     */
    public function index()
    {
        $params     = $this->request->post();
        $TikAccountDataLogic = new TikAccountDataLogic();
        return $TikAccountDataLogic->index($params);
    }

    /**
     * export
     * @throws Throwable
     */
    public function export()
    {
        $params     = $this->request->post();
        $TikAccountDataLogic = new TikAccountDataLogic();
        return $TikAccountDataLogic->export($params);
    }

}
